package com.appkubes.mall.admin.application.order.order.entity.vo;

import com.appkubes.base.core.entity.vo.PageVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Pattern;

@Data
@ApiModel("查询条件")
public class OrderSearchVO extends PageVO {

    @ApiModelProperty("订单号")
    String orderNo;

    @ApiModelProperty("订单ID")
    String orderKey;

    @ApiModelProperty("用户KEY")
    String userKey;

    @ApiModelProperty("收货人")
    String name;

    @ApiModelProperty("手机号")
    String mobile;

    @ApiModelProperty("订单状态(unPay|paySuccess|checked|sending|arrive|completed|cancel)")
    @Pattern(regexp = "(unPay|paySuccess|checked|sending|arrive|completed|cancel|)*", message = "状态编码不对")
    String status;

    String flexSegment2 = "1";

    @ApiModelProperty("开始时间(时间戳)")
    Integer startDate;

    @ApiModelProperty("结束时间(时间戳)")
    Integer endDate;

}
